package com.gyx.lottery.service;

import com.gyx.lottery.controller.param.DrawPrizeParam;
import com.gyx.lottery.controller.param.WinningRecordParam;
import com.gyx.lottery.dao.dataobject.WinningRecordDO;
import com.gyx.lottery.service.dto.WinningRecordDTO;

import java.util.List;

public interface DrawPrizeService {
    /**
     * 异步处理抽奖请求
     * @param param
     */
    void drawPrize(DrawPrizeParam param);

    /**
     * 校验抽奖信息是否合法
     * @param param
     * @return
     */
    boolean checkDrawPrizeParam(DrawPrizeParam param);

    List<WinningRecordDO> saveWinnnerRecords(DrawPrizeParam param);
    void deleteRecords(Long activityId, Long prizeId);

    List<WinningRecordDTO> getWinningRecord(WinningRecordParam param);
}
